package com.example.gpssystem.model;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import java.util.List;
@Data
@Document(collection = "couriers")
public class Courier {
    @Id
    private String id;
    private String name;
    private List<String> activityRange = new ArrayList<>(); // 确保初始化空数组
    
    // getters and setters
}